package com.ecoolex.chinadutyfree.retailer.ws;

import java.util.Date;
import java.util.List;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderIncrementData;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderTotalData;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsProductIncrementData;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsProductTotalData;
import com.ecoolex.chinadutyfree.retailer.entity.UserOrderData;
import com.ecoolex.chinadutyfree.retailer.pojo.OrderStatisticsIncrementDTO;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.framework.common.pojo.Sorting;

public interface DataAnalyseService {
	
	DirectMailGoodsOrderTotalData getLatestOrderTotalData();
	
	OrderStatisticsIncrementDTO getOrderIncrementDataByDate(Date startDate,Date endDate);
	
	List<DirectMailGoodsOrderIncrementData> getIncrementOrderListByDate(Date startDate,Date endDate);
	
	DirectMailGoodsProductTotalData getLatestProductTotalData();
	
	Pagination<DirectMailGoodsProductIncrementData> queryProductIncrement(Date startDate,Date endDate,String customName,Sorting[] sorts,Page page);
	
	Pagination<UserOrderData> queryUserOrder(Date startDate,Date endDate,Integer userId,Sorting[] sorts, Page page);
	
	Boolean refreshOrderTotalData(String updateUser);
	
	Boolean refreshOrderIncrementData(String updateUser,Date statisticsDate);
}
